import Layout from '@/layout'

export default {
  router: [{
    path: '/business',
    component: Layout,
    meta: { title: '业务管理', icon: 'el-icon-office-building' },
    redirect: '/business',
    children: [
      {
        path: '/business/order-manage',
        name: 'order-manage',
        component: () => import('@/views/business/order-manage/index'),
        meta: { title: '订单管理', icon: '' }
      },
      {
        path: '/business/waybill',
        name: 'waybill',
        component: () => import('@/views/business/waybill/index'),
        meta: { title: '运单管理', icon: '' }
      },
      {
        path: '/business/order-manage/particulars',
        name: 'particulars',
        hidden: true,
        component: () => import('@/views/business/order-manage/particulars'),
        meta: { title: '订单详情', icon: '' }
      },
      {
        path: '/business/waybill/detail',
        name: 'waybillDetail',
        hidden: true,
        component: () => import('@/views/business/waybill/detail'),
        meta: { title: '运单详情', icon: '' }
      }
    ]
  }]
}
